<?php

class Quad_Form_Element_Textarea extends Quad_Form_Element {
	
	public function __construct($labelText, $value='') {
		parent::__construct('textarea', $labelText, $value);
		$this->addClassName('q-form-textarea');
	}
		
	protected function _processAttributes(&$attr) {
		unset($attr['value']);
		parent::_processAttributes($attr);
	}
	
	protected function _getInnerHTML() {
		return $this->getAttribute('value');
	}	
	
	protected function _setInnerHTML($value) {
		$this->setAttribute('value', $value);
	}
	
}

